<template>
    <div>
        <div>
            <el-descriptions title="用户信息" v-for="(item,index) in find" :key="index">
                <el-descriptions-item label="访问房屋">{{item.houseingname}}</el-descriptions-item>
                <el-descriptions-item label="访问姓名">{{item.visitorsName}}</el-descriptions-item>
                <el-descriptions-item label="访客性别">{{item.visitorsAge}}</el-descriptions-item>
                <el-descriptions-item label="手机号码">{{item.visitorsPhone}}</el-descriptions-item>
                <el-descriptions-item label="访问日期">2022/09/09</el-descriptions-item>
                <el-descriptions-item label="访问时长">{{item.duration}}</el-descriptions-item>
                <el-descriptions-item label="被访问业主">蒋锋</el-descriptions-item>
            </el-descriptions>
        </div>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                //详情
                find: []
            }
        },
        created() {
            //查询我的基本信息
            var id = this.$route.params.id;
            this.findById(id);
        },
        methods: {
            findById(id){
                this.$axios
                    .get("/systemuser/sfangke/findById", {
                        params: {
                            //获取的周期
                            id: id
                        },
                    })
                    .then((res) => {
                        this.find =  res.data;
                    });
            }
        }
    }
</script>

<style scoped>

</style>
